import {
    SET_LOADING
} from '../mutation-types';
const state = {
    show: false
}
const mutations = {
    [SET_LOADING](state, bool) {
        state.show = bool;
    }
}
const actions = {
    CHANGE_LOADING_SHOW: ({ commit, dispatch }) => {
        commit(SET_LOADING, true)
    },
    HIDDEN_LOADING_SHOW:({commit, dispatch}) => {
        commit(SET_LOADING, false)
    }
}
export default {
    state,
    actions,
    mutations
}